<template>
  <div class="header">
    <div class="iconfont icon-back" @click="handleBack">&#xe667;</div>
    <div class="title">选择城市</div>
  </div>
</template>
<script>
export default {
  name: 'CityHeader',
  methods:{
    handleBack() {
      this.$router.go(-1)
    }
  }
}
</script>
<style lang="scss" scoped>
  @import '../../../assets/base.scss';
  .header{
    position: relative;
    text-align: center;
    height: 80px;
    line-height: 80px;
    background-color: $headerColor;
    color: #fff;
    font-size: 30px;
    .icon-back{
      position: absolute;
      left: 0;
      width: 80px;
      height: 100%;
      line-height: 80px;
      text-align: center;
      font-size: 40px;
    }
  }
</style>
